<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/jsp/include/include.inc.jsp"%>

<div class="page  page-full animation-fade">
    <div class="page-content">
        <div class="panel">
            <div class="panel-heading">
                <h3 class="panel-title">业务号配置</h3>
                <div class="panel-actions" id="serialnumber_toolbar">
                    <a class="btn btn-primary" href="${base}/admin/sys/serialnumber/create" data-toggle="add">
                        <i class="fa fa-plus"></i> 添加
                    </a>
                    <a class="btn btn-primary" href="${base}/admin/sys/serialnumber/edit?id={{id}}" data-toggle="edit">
                        <i class="fa fa-pencil-square-o" aria-hidden="true"></i> 编辑
                    </a>
                    <a class="btn btn-danger"  href="${base}/admin/sys/serialnumber/del" href="#" data-toggle="del">
                        <i class="fa fa-trash-o" aria-hidden="true"></i> 删除
                    </a>
                </div>
            </div>
            <div class="panel-body">
                <@dataGrid id="sys_serialnumber_config_table"></@dataGrid>
            </div>
        </div>
    </div>


</div>
<script type="text/javascript">

    $.namespace('Page.Role');

    Page.Role = function () {
        return {
            init: function () {
            },
            state: function (data) {

                if (data) {
                    return '<span class="label  label-warning ">已禁用</span>';
                } else {
                    return '<span class="label label-primary">已启用</span>';
                }

            }
        }
    }();

    $(document).ready(function () {
        Page.Role.init();
    });
</script>


